TapTree\WooCommerce\Gateway\TapTreePaymentGateway C

Total Complexity 103
Dependencies 11
Dependents 4
Total lines 813
Lines of code 486
Logical lines of code 268
Comment lines 99
Methods 35
Properties 8

Methods 35

Method Rating Maintainability Complexity Lines of code
getInstructions()
A
49 9 33
process_refund()
A
43 8 47
__construct()
A
43 7 48
updateImpactIfTotalsChanged()
A
53 8 22
displayInstructions()
S
48 6 38
asciiDomainName()
S
57 7 15
getCartTotal()
S
54 6 21
idnEncodeDomain()
S
56 5 21
process_payment()
S
52 4 25
isOrderPaid()
S
58 4 16
set_payment_description()
S
61 5 10
thankyou_page()
S
59 3 15
getOrderRedirectUrl()
S
57 2 18
getImpact()
S
68 3 7
getImpactTitle()
S
67 2 7
action_cart_calculate_totals()
S
69 2 7
get_icon()
S
74 2 4
isPaidByOtherGateway()
S
74 2 4
getReturnUrl()
S
59 1 15
unsetActiveTapTreePayment()
S
66 2 9
orderDoesNotExistFailure()
S
61 1 14
getWebhookUrl()
S
59 1 14
appendOrderArgumentsToUrl()
S
64 1 11
initModal()
S
67 1 9
setCancelledTapTreePaymentId()
S
70 1 6
saveTapTreeInfo()
S
76 1 4
setImpactTitle()
S
77 1 4
reportPaymentIntentCreateSucceeded()
S
64 1 9
setPaymentMethodIcon()
S
69 1 7
getActiveTapTreePaymentId()
S
75 1 4
reportPaymentIntentCreateFailed()
S
67 1 7
isOrderPaidWithTapTree()
S
79 1 3
setOrderPaidWithTapTree()
S
76 1 4
init_form_fields()
S
80 1 3
isTapTreeAvailable()
S
72 1 5